home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / pcutils / os2 / imshow / source / imshow.rc < prev    next >
Encoding:
Text File  |  1995-12-31  |  7.1 KB  |  149 lines

  1. /*****************************  IMSHOW.RC  *********************************/
  2. /*                                                                         */
  3. /*  Ressourcefile to IMSHOW.EXE                                            */
  4. /*                                                                         */
  5. /*  IMSHOW.RC, Version 2.02, 1/93                                          */
  6. /*                                                                         */
  7. /***************************************************************************/
  8.  
  9. #include <os2.h>        /* We need this                                    */
  10. #include "imshow.h"     /* The symbolic names of imShow are given in       */
  11.                         /* imShow.h, so we need this.                      */
  12.  
  13. /***************************************************************************/
  14. /* This is the icon of imShow:                                             */
  15. /***************************************************************************/
  16. ICON    ID_RESOURCE imshow.ico
  17.  
  18. /***************************************************************************/
  19. /* The definition of the menu bar:                                         */
  20. /***************************************************************************/
  21. MENU    ID_RESOURCE PRELOAD
  22. {
  23.   SUBMENU "~File",              IDM_FILE
  24.   {
  25.     MENUITEM "~Open...",          IDM_OPEN
  26.     MENUITEM SEPARATOR
  27.     MENUITEM "~Exit\tF3",         IDM_QUIT
  28.   }
  29.   SUBMENU "~View",              IDM_VIEW
  30.   {
  31.     MENUITEM "~Fit in window\tCtrl+W", IDM_FIT
  32.     MENUITEM "~25%",                   IDM_25
  33.     MENUITEM "~50%",                   IDM_50
  34.     MENUITEM "~75%",                   IDM_75
  35.     MENUITEM "~100%\tCtrl+1",          IDM_100,, MIA_CHECKED
  36.     MENUITEM "2~00%",                  IDM_200
  37.     MENUITEM "~400%",                  IDM_400
  38.     MENUITEM "~800%",                  IDM_800
  39.   }
  40.   MENUITEM "~Properties",       IDM_PROP
  41.   SUBMENU  "~Help",             IDM_HELP
  42.   {
  43.     MENUITEM "~Help for help...", IDM_HELPHELP
  44.     MENUITEM "~Extended help...", IDM_HELPEXT,, MIA_DISABLED
  45.     MENUITEM "~Keys help...",     IDM_HELPKEYS,,MIA_DISABLED
  46.     MENUITEM "Help ~index",       IDM_HELPIND,, MIA_DISABLED
  47.     MENUITEM SEPARATOR
  48.     MENUITEM "~About IMSHOW",     IDM_ABOUT
  49.   }
  50. }
  51.  
  52. /***************************************************************************/
  53. /* Definition of the accelerator keys:                                     */
  54. /***************************************************************************/
  55. ACCELTABLE ID_RESOURCE PRELOAD
  56. {
  57.   VK_F3,     IDM_QUIT, VIRTUALKEY
  58.   "^W",      IDM_FIT  /* This one doesn't work, who knows why????          */
  59.   "1",       IDM_100, CONTROL
  60. }
  61.  
  62. /***************************************************************************/
  63. /* Definitions of the strings:                                             */
  64. /*                                                                         */
  65. /* One should really define all used strings in the resource file, so the  */
  66. /* application can be translated without recompiling it. However, there    */
  67. /* are still some hardcoded strings in imShow...                           */
  68. /***************************************************************************/
  69. STRINGTABLE PRELOAD
  70. {
  71.   IDS_HELPTITLE, "IMSHOW - Help"
  72.   IDS_TYPEERR,   "The file is not an 'im', GIF, or OS/2 bitmap file."
  73.   IDS_IMTITLE,   "IMSHOW"
  74.   IDS_HELP,      "Sorry, no online help"
  75.   IDS_ERRTITLE,  "Error"
  76.   IDS_FILEERR,   "The file could not be loaded (it probably doesnt't exist)."
  77.   IDS_FLTERR,    "The 'im'-type IMFLT is not supported."
  78.   IDS_GIFERR,    "GIF-Error:"
  79.   IDS_GIFUNEX,   "Unexpected error"
  80.   IDS_GIF_NOIMG, "No image data"
  81.   IDS_GIF_BOGUS, "Bogus byte in file"
  82.   IDS_GIF_INTL,  "Cannot read interlaced"
  83. }
  84.  
  85. /***************************************************************************/
  86. /*     "About" dialogbox:                                                  */
  87. /*                                                                         */
  88. /*     The NOT_WS_SAVEBITS option below is because of a bug in the current */
  89. /*     Palette Manager; the SAVEBITS option (which would be the default)   */
  90. /*     doesn't work correctly.                                             */
  91. /*                                                                         */
  92. /***************************************************************************/
  93. DLGTEMPLATE IDD_ABOUT
  94. {
  95.   DIALOG "", 0, 32, 32, 210, 140,NOT WS_SAVEBITS,FCF_DLGBORDER
  96.   {
  97.     CTEXT "imShow"                                   -1, 10, 120, 190,  8
  98.     ICON  ID_RESOURCE                                -1,  8, 104,   0,  0
  99.     CTEXT "in 'im', GIF, or OS/2 bitmap format."     -1, 10,  88, 190,  8
  100.     CTEXT "Version 2.02,  1/93"                      -1, 10,  80, 190,  8
  101.     CTEXT "Institut für Informatik (ifi),"           -1, 10,  40, 190,  8
  102.     CTEXT "Universität Zürich, 1993"                 -1, 10,  32, 190,  8
  103.     CTEXT "Utility to display pictures"              -1, 10,  96, 190,  8
  104.     CTEXT "Developed by Martin Erzberger, 1989/93"   -1, 10,  68, 190,  8
  105.     DEFPUSHBUTTON "Ok"                           DID_OK, 85,   8,  40, 16, WS_GROUP
  106.   }
  107. }
  108.  
  109.  
  110. /***************************************************************************/
  111. /*     "Loading"  dialogbox:                                               */
  112. /***************************************************************************/
  113. DLGTEMPLATE IDD_CANCEL
  114. {
  115.   DIALOG "", 256, 80, 132, 128, 64, WS_VISIBLE
  116.   {
  117.     CTEXT "Loading..."                 -1,          26, 45, 80, 8
  118.     RTEXT ""                           IDD_PERCENT, 21, 29, 15, 8
  119.     LTEXT "% of file loaded"           -1,          36, 29, 80, 8
  120.     DEFPUSHBUTTON "Esc = break"        DID_CANCEL,  25,  2, 76, 12, WS_GROUP
  121.   }
  122. }
  123.  
  124. /***************************************************************************/
  125. /*     "Parameter" dialogbox:                                              */
  126. /***************************************************************************/
  127. DLGTEMPLATE IDD_PROP
  128. {
  129.   DIALOG "", 256, 100, 100, 130, 116, NOT WS_SAVEBITS, FCF_DLGBORDER
  130.   {
  131.     CTEXT "Image properties"     -1,            4, 100, 116, 8
  132.     LTEXT "Type:"                -1,            4,  84, 84,  8
  133.     RTEXT ""                     IDD_TYPE,     88,  84, 36,  8
  134.     LTEXT "Storage method:"      -1,            4,  74, 84,  8
  135.     RTEXT ""                     IDD_STORAGE,  88,  74, 36,  8
  136.     LTEXT "Size in X:"           -1,            4,  64, 84,  8
  137.     RTEXT ""                     IDD_SIZEX,    88,  64, 36,  8
  138.     LTEXT "Size in Y:"           -1,            4,  54, 84,  8
  139.     RTEXT ""                     IDD_SIZEY,    88,  54, 36,  8
  140.     LTEXT "Samples / Pixel:"     -1,            4,  44, 84,  8
  141.     RTEXT ""                     IDD_SAMPLES,  88,  44, 36,  8
  142.     LTEXT "Bits / Sample:"       -1,            4,  34, 84,  8
  143.     RTEXT ""                     IDD_DEPTH,    88,  34, 36,  8
  144.     LTEXT "Colors (in Colormap):"-1,            4,  24, 84,  8
  145.     RTEXT ""                     IDD_COLORS,   88,  24, 36,  8
  146.     DEFPUSHBUTTON "Ok"           DID_OK,       42,   4, 40, 16, WS_GROUP
  147.   }
  148. }
  149.